/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.shop;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 店铺审核Entity
 * @author 李欣荣
 * @version 2018-10-09
 */
public class HkShopReview extends DataEntity<HkShopReview> {
	
	private static final long serialVersionUID = 1L;
	private HkUserShop shop;		// 店铺
	private String reviewStatus;		// 审核状态  0-审核中 1-审核通过  2-审核未通过
	private String reviewFailMsg;		// 审核未通过原因
	private Date reviewBeginDate;		// 审核开始时间
	private Date reviewEndDate;		// 审核结束时间
	private String state;		// 状态
	private User user;


	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public HkShopReview() {
		super();
	}

	public HkShopReview(String id){
		super(id);
	}

	public HkUserShop getShop() {
		return shop;
	}

	public void setShop(HkUserShop shop) {
		this.shop = shop;
	}
	
	@Length(min=0, max=1, message="审核状态长度必须介于 0 和 1 之间")
	public String getReviewStatus() {
		return reviewStatus;
	}

	public void setReviewStatus(String reviewStatus) {
		this.reviewStatus = reviewStatus;
	}
	
	@Length(min=0, max=100, message="审核未通过原因长度必须介于 0 和 100 之间")
	public String getReviewFailMsg() {
		return reviewFailMsg;
	}

	public void setReviewFailMsg(String reviewFailMsg) {
		this.reviewFailMsg = reviewFailMsg;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getReviewBeginDate() {
		return reviewBeginDate;
	}

	public void setReviewBeginDate(Date reviewBeginDate) {
		this.reviewBeginDate = reviewBeginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getReviewEndDate() {
		return reviewEndDate;
	}

	public void setReviewEndDate(Date reviewEndDate) {
		this.reviewEndDate = reviewEndDate;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
}